<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><s:text name="horseadimn"/></title>
<script type="text/javascript" src="${ctx}/scripts/commons/jquery-1.2.3.pack.js"></script>
<script src="${ctx}/scripts/datepicker/WdatePicker.js"></script>
<script type="text/javascript">
     
     
     //过滤特殊字符
function checkStr(str){
	if(str.value!=""){
	      if (!(/^[^\|"'<>:;：；‘“$%*@,.，。/、！·#￥%……—*（）——+| ]*$/.test(str))){
	      		return false;
	      }
	}
	return true;
}
function deleteWeb(webId) {
	  if(window.confirm('确定要删除该信息吗?')) {
	  		window.location = "${ctx }/sysweb/sysweb!delete.action?sysWeb.webId="+webId;
	  }  
	}
 </script>
</head>
<link href="${ctx}/css/main/base.css" rel="stylesheet" type="text/css"/>
<link href="${ctx}/css/main/main.css" rel="stylesheet" type="text/css"/>
<body class="m_6">
<div id="main">
	<div class="zdsz" id="select1">
		<div class="tab"><a href="ctx/../sysweb!index.action"><h3>添加网站</h3></a><a href="ctx/../sysweb!list.action"><h3 class="sel" >网站列表</h3></a></div>
		<div class="zd_gut">
		<ul class="block">
		<li>
    			<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" class="tab_1 center">
				  <tr>
				    <td class="bg4">网站名称</td>
					<td class="bg4">网站域名</td>
				    <td class="bg4">网站ICP号</td>
				    <td class="bg4">操作</td>
				  </tr>
				  <s:iterator value="flipData.data" status="link" id="linka">
				  <tr>
					<td>
		                 <s:property value="webName"/>
					</td>
					<td>
						<s:property value="webHttp"/>
		                 
					</td>
					<td>
						<s:property value="webIcp"/>
		                 
					</td>
					<td>
		                 <a href="${ctx }/sysweb/sysweb!modify.action?sysWeb.webId=<s:property value="webId"/>">编辑</a><span onclick=" deleteWeb('<s:property value="webId"/>');" style="cursor: pointer;"> 删除</span>
					</td>
					
					</tr>
				  </s:iterator>
		  		</table> 
              <form action="sysweb!list.action" method="post" name="pageform">
		  			  	 <div class="fy01" align="center">
          	    <input type="hidden" value="<s:property value="flipData.page" />" name="flipData.page" id="page">
				<s:text name="index.pagebar.first"/><s:property value="flipData.total" />
				<s:text name="index.pagebar.second"/>
				<s:property value="flipData.size" />
				<s:text name="index.pagebar.third"/>
				<s:property value="flipData.page" />
				/<s:property value="flipData.totalPageCount" />
				<s:text name="index.pagebar.first"/>
				<s:property value="flipData.totalPageCount" />
				<s:text name="index.pagebar.fouth"/>　　
				 <<
				<a href="javascript:document.getElementById('page').value=1;list();"><s:text name="index.pagebar.fifth"/></a>&nbsp;&nbsp;
				<s:if test="flipData.page >1 ">
					<a href="javascript:document.getElementById('page').value=parseInt(document.getElementById('page').value)-1;list();"><s:text name="index.pagebar.priv"/></a>&nbsp;&nbsp;
                </s:if>
				<s:if test="flipData.page < flipData.totalPageCount">
					<a href="javascript:document.getElementById('page').value=parseInt(document.getElementById('page').value)+1;list();"><s:text name="index.pagebar.next"/></a>&nbsp;&nbsp;
     		    </s:if>
				<a href="javascript:<s:if test="#request.flipData.totalPageCount > 0">document.getElementById('page').value=<s:property value="#request.flipData.totalPageCount"/></s:if>;list();"><s:text name="index.pagebar.last"/></a>
				>>
				</input>	
			</div>
			</form>
						
         </li>
		</ul>
		</div>
	</div>
</div>
</body>
</html>
<script type="text/javascript">
<!--
function issunamelist(){
document.forms[0].submit();
}

function list(){
document.forms[0].submit();
}

function issuelist(){
if( ($("input:checked").size())==0){
  			alert("<s:text name="bg.horse.choose" />");
  			return;
  }
document.forms[1].submit();
}
//-->
</script>
